package com.yifeng.repo.base.consts;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * Created by daibing on 2023/3/15.
 */
@Getter
public enum DeployModeEnum {
    STANDALONE(1, "单机"),
    CLUSTER(2, "集群"),
    ;

    @EnumValue
    private final int code;

    @JsonValue
    private final String name;

    DeployModeEnum(int code, String name) {
        this.code = code;
        this.name = name;
    }
}
